package com.bootdo.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.blog.dao.IrrigationMapper;
import com.bootdo.blog.domain.IrrigationDO;
import com.bootdo.blog.service.IrrigationService;



@Service
public class IrrigationServiceImpl implements IrrigationService {
	@Autowired
	private IrrigationMapper irrigationMapper;
	
	@Override
	public IrrigationDO get(Integer irriId){
		return irrigationMapper.get(irriId);
	}
	
	@Override
	public List<IrrigationDO> list(Map<String, Object> map){
		return irrigationMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return irrigationMapper.count(map);
	}
	
	@Override
	public int save(IrrigationDO irrigation){
		return irrigationMapper.save(irrigation);
	}
	
	@Override
	public int update(IrrigationDO irrigation){
		return irrigationMapper.update(irrigation);
	}
	
	@Override
	public int remove(Integer irriId){
		return irrigationMapper.remove(irriId);
	}
	
	@Override
	public int batchRemove(Integer[] irriIds){
		return irrigationMapper.batchRemove(irriIds);
	}
	
}
